About Android's anti-compilation tool, I believe that everyone is not unfamiliarsuch as Apk-tool,dex2jarApk-tool to decompile a layout fileHttp://code.google.com/p/android-apktool/downloads/listDex2jar used to decompile Dex into a. jar Package:http://code.google.com/p/dex2jar/downloads/listGenerated jar packages can be viewed with Jd-gui (provided the code is not obfuscated)But suppose that the apk we extracted from the ROM does not decompile the source code.Since the Android system accelerates
How to configure the android simulator dex file not optimized to odex
APK is a compressed program package with an execution program in it. ODEX optimization is to extract the execution program in the package and convert it into an ODEX file, because you have extracted it, wh
APK is a program compression package, which has an executive program, ODEX optimization is the package inside the implementation of the program to extract, to become a Odex file, because you extracted, the first time the system does not need to unpack the program to compress the program, less a decompression process. That way, the system starts up faster.
Recent
Recently done a module, you need to load the APK inside the Dex file dump out, so need to configure to Dalvik not to the Dex file optimization into Odex.
1. Configure Build.prop
Mainly by modifying the configuration of the file/system/build.prop inside.
(1) Dalvik.vm.dexopt-flags
This parameter controls the program
re-mount the system partition to make the system partition writable. If you do not execute this operation, you cannot modify the build. prop file. Adb remount (2) Next, enter the command line of the simulator: adb shell (3) write the configuration to build. prop: echo "dalvik. vm. dexopt-flags = v = n, o = v ">/system/build. propecho "dalvik. vm. checkjni = false ">/system/build. in this way, the prop is changed to the simulator. After verification,
Odex merge method:
Smali-1.2.2.jar and baksmali-1.2.2.jar
Http://code.google.com/p/smali/downloads/list
2. some jar files in the ROM where the APK is located are all in the/system/framework: core. jar, ext. jar, framework. jar, android. policy. jar, services. jar
Of course, these five are the most basic and may not be enough. This situation will be discussed below. (We recommend that you extract all the content under/system/framework)
3. There are fo
This method is very early people said, the following is my own operation and then re-organized, I hope that everyone can help.
There are many Odex files in the Android ROM, what does this Odex do with the Dex file in the APK? If you look closely you will find that the file name corresponds to one by one and that there
One, Dex and Odex
Dex is an executable file for the Android Dalvik virtual machine that can be opened directly in the exported APK file using the Unzip software. Odex is optimized for Dex. Odex one is extracted from the APK program, and the APK
Hello everyone, here we will introduce the APK decompilation operation:1: APK Decompilation2: Convert odex to Dex
Operating Environment: Ubuntu
A: decompilation APK
To code. Google download apktool. jar and Related Files: http://code.google.com/p/android-apktool/downloads/list
Click to download apktool-1.0.0.tar.bz2 and apktool-install-linux-2.20.r01-1.zip
Apktool command./Apktool D geek.apk test decompile geek.apk to the folder Test
B: Convert
)) Local_dex_preopt: =elseifeq (, $ (Target_build_apps)) Ifneq (, $ (local_src_files)) ifndef Local_dex_preoptlocal_dex_preopt: = Trueendifendifendifendififeq (false,$ (local_dex_preopt)) LOCAL_DEX_PREOPT: = endifThis part of the logic from Package.mk can be seen,Target_build_appsThe empty is set in the lunch command in the previous article, which represents full compilation! AndLocal_src_filesCan not be empty, meaning that there is a source ofIf not defined at this time, then the variable local
There are many odex files in the android Rom. What is the role of this odex file relative to the DEX file in the APK? If you observe carefully, you will find that the file names correspond one by one, and the corresponding APK files do not contain Dex files. In this way, the
Android anti-compilationDecompile the Odex file (for example, Framework.odex), and if you reverse-compile Dex, step 4th directly1Because the Odex tool in the D:\Develop tools\android Anti-compilation tool \odex, in order to execute the command conveniently in the Odex folder
automatic management functions:
See more>
3. Art replaces Dalvik
In KitKat, the art mode can be switched in "Developer options", but this option is not added to Sony 4.4. The reason is that the application needs to be optimized; otherwiseCompatibilityPoor risk, and optimization will delay the release time of the new system.
The art mode is faster than Dalvik, but it also has some disadvantages:
1. It will increase the storage space occupied by the Program (not a lot ).
2. More power consumptio
Recently, to do a module, you need to dump the Dex file loaded inside the APK, so you need to configure the Dalvik not to optimize the Dex file to Odex.1. Configure Build.propMainly by modifying the configuration inside the file/system/build.prop.(1) Dalvik.vm.dexopt-flagsThis parameter controls the program code checks
Tips! The application is installed in two cases: first when the system is first booted, and the second: after the system Starts. This blog post is based on the first installation scenario. In the First-time scenario, the system will translate all
in the. r file, we can call this ID, but only this ID is not enough,. R file is only to ensure that the compiler does not complain, in fact, when the program is running, the system will be based on ID to find the corresponding resource path, and RESOURCES.ARSC file is used to record these IDs and resources File locati
management and configuration tools. This folder is equivalent to/sbin in the standard Linux file system. My mobile phone This directory has busybox, must be changed, should be added by the cracker. Modules: Places that are used to store kernel modules (primarily FS and net) and module configuration files. Framework: Some of the core files of the Java platform, which belong to the Java Platform System framework fi
File type, C language file read/write, File Buffer, file opening method, file operation functionFile types include stream files and device files. device files such as VGA interfaces, serial ports, USB ports, network ports, and serial ports are abstracted into files by the op
SpringMVC single file upload, multi-File Upload, file list display, file download, springmvc File Upload
Original works of Lin bingwen Evankaka. Reprinted please indicate the source http://blog.csdn.net/evankaka
This document describes in detail the single
, which belong to the Java Platform System framework file. The files inside are. jar and. odex files.Note: What is a Odex file? Odex is an optimized Java program file, usually about 4 times times the size of the. jar. Execution ef
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.